<?php
	$CI =& get_instance();
	
	$tree = $this->model_nav->fetchNav($node['pid']);
	$rows = $this->model_c1->find_by_nodeid($node['id']);

	$p_node = $this->model_nav->find($node['id']);
	$list_node = $this->model_nav->fetchNav($node['id']);
	$t1 = unserialize($content['t1']);
	
?>
<div class="left-2-col texture">
	<ul class="bullet_list">
		<?php foreach($tree as $item):
			$class = ($node['id'] == $item['id']) ? "selected": "";
		?>
		<li class="<?=$class?>">
			<a href="<?=site_url(array('c' => 'home','m' => 'index', 'nav'=>$item['id']))?>" title="<?=htmlspecialchars($item['nav_name'])?>"><?=htmlspecialchars($item['nav_name'])?></a>
		</li>
		<?php endforeach; ?>
	</ul>
</div>
<div class="col_center" id="page_search">
	<h2><?=htmlspecialchars($node['nav_name']);?></h2>
	<div class="clearfix"></div>
	<div class="text_content">
		<div class="text_col_1"><?=@$t1['content']?></div>
		<div class="text_col_2">
			<?php foreach($list_node as $row):?>
				<div class="subsidiary">
					<?php if(!empty($row['icon'])):?>
					<img src="<?=userfile_img_url($row['icon'])?>" width="80">
					<?php else:?>
					<img src="<?=image_url()."no_image.jpg"?>" width="80">
					<?php endif;?>
					<a href="<?=site_url(array('c'=>'home','m'=>'index','nav'=>$row['id'],'url_title'=>$row['url_title']))?>" title="<?=htmlspecialchars($row['nav_name'])?>"><?=htmlspecialchars($row['nav_name'])?></a>
					<div class="clearfix"></div>
				</div>
			<?php endforeach;?>
		</div>
		
	</div>
</div>
<div class="clearfix"></div>
